package com.job.GaoYuXuan.Homework0712;

/**
 * @author 盖
 * @version 1.0
 * @since 2022-07-12 20:41:36
 */
public class AttackFactory {
    public static Attack getAttack(int way){
        if(way == 1){
            return new Grapple();
        }
        if(way == 2){
            return new Bite();
        }
        if(way == 3){
            return new Pounce();
        }
        return null;
    }
}